﻿using Core.Middleware.StaticFileCacheing;
using System.IO;
using System.Text;

namespace Core.Web
{
    // <script src="url/shop/5236.json"><script>
    [CacheTopic("shop")]
    public class ShopFileCache : IFileCache
    {
        public string Get(params string[] values)
        {
            return File.ReadAllText($"FileCache/{values[0]}.json", Encoding.GetEncoding("gb2312"));
        }

        public bool Set(params string[] values)
        {
            return true;
        }
    }
}
